package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "features")
public class FeaturesModel
{
    private List<FeatureModel> featureModels = new ArrayList<FeatureModel>();

    @XmlElement(name = "feature")
    public List<FeatureModel> getFeatureModels()
    {
        return featureModels;
    }

    public void setFeatureModels(List<FeatureModel> featureModels)
    {
        this.featureModels = featureModels;
    }

    public void addFeature(FeatureModel featureModel)
    {
        featureModels.add(featureModel);
    }
}
